import Vue from 'vue';
import VueRouter from 'vue-router';
// import demo from './demo'
import home from './home'
import user from './user'
Vue.use(VueRouter)
// 保存所有的路由
const routes = [
  // ...demo,
  ...home,
  ...user
]
/**
 * @desc 创建路由
 */
const router = new VueRouter({
  routes,
  mode: 'history'
})
//  导出路由对象
export default router